package exttable.dbclasses;

/**
 * Created by IntelliJ IDEA.
 * User: ADMIN
 * Date: 03.02.2011
 * Time: 9:42:22
 * To change this template use File | Settings | File Templates.
 */
public enum EGetID {
    VOLUNTEERS {
        @Override
        public int getID(Object obj) {
            return ((Volunteer) obj).getVolunteerId();
        }},
    PROBATIONERS {
        @Override
        public int getID(Object obj) {
            return ((Probationer)obj).getProbationer_id();
        }},
    GROUPS {
        @Override
        public int getID(Object obj) {
            return ((Group)obj).getGroupId();
        }};

    public abstract int getID(Object obj);
}
